package com.wang.exam.service;

import com.wang.exam.mapper.StudentExamCourseMapper;
import com.wang.exam.pojo.JavaWebExam;
import com.wang.exam.pojo.StudentExamCourse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudentExamCourseService {
    @Autowired
    StudentExamCourseMapper studentExamCourseMapper;
    public List<StudentExamCourse> getCourses(Integer student_id){
        return studentExamCourseMapper.getCourses(student_id);
    }
    public List<StudentExamCourse> getCourse(Integer student_id,Integer course_id){
        return studentExamCourseMapper.getCourse(student_id,course_id);
    }
    public List<JavaWebExam> getTexts(){
        return studentExamCourseMapper.getTexts();
    }
}
